package cn.edu.cqvie.atc.tree;

/**
 * 二叉树节点
 *
 * @author Zheng Shaohong
 */
public class Node {

    //数据项
    public long data;
    //数据项
    public String sData;
    //左子节点
    public Node leftChild;
    //左子节点
    public Node rightChild;

    public Node(long data) {
        this.data = data;
    }

    public Node(long data, String sData) {
        this(data);
        this.sData = sData;
    }


    @Override
    public String toString() {
        return "Node{" +
                "data=" + data +
                ", sData='" + sData + '\'' +
                ", leftChild=" + leftChild +
                ", rightChild=" + rightChild +
                '}';
    }
}
